package com.franklin.validation.core.response;


import com.franklin.validation.core.annotations.Response;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * Description :
 * Create By: Franklin
 * Date : 2020/6/4 12:19
 */
@Component
@Response(type = String.class)
public class DefaultStringJsonResponse implements JsonResponse<String,String>{

    @Override
    public String response(String input) {
        return input;
    }

    @Override
    public String defaultResponse(Class ... type) {
        return "ERROR";
    }
}
